/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2021-11-02 11:22:59
 * @LastEditors: ziwei
 * @LastEditTime: 2021-11-02 17:29:30
 */
import * as types from "./action-types";

export default function reducer(state={number:0},action) {
  console.log("action.type",action.type);
  switch (action.type) {
    case types.ADD:
      return {number:state.number+1}
    default:
      return state
  }
}